﻿using ConfExpert.Forms.Base;
using Extensions;
using System;

namespace ConfExpert.Forms.TaskManager
{
    public partial class SingleGridTask : XForm
    {
        string SPName;
        
        public SingleGridTask(string Header,string SPName)
        {
            InitializeComponent();
             
            this.SPName = SPName;
            this.HeaderText = Header;
            this.Text = Header;
        }

        private void SingleGridTask_Load(object sender, EventArgs e)
        {
            ShowOnlyFooter();
            gv.Init(SPName, 0,WhoAmI);
            gv.AddSummary();
            gv.BestFitColumns();
        }
    }
}
